import request from "../axios";

const api = {
    //列表
    getlist(params) {
        return request({
            url: "/blog/blog/list",
            method: "get",
            params: params,
        });
    },
    //添加
    addList(data) {
        return request({
            url: "/blog/blog/add",
            method: "post",
            data: data,
        });
    },
    //删除
    remove(data) {
        return request({
            url: "/blog/blog/remove",
            method: "post",
            data: data,
        });
    },
    //更新
    update(data) {
        return request({
            url: "/blog/blog/update",
            method: "post",
            data: data,
        });
    },
    //实体
    getmodel(data){
        return request({
            url: "/blog/blog/model",
            method: "get",
            params: data,
          });
    }
};

export default api;
